package org.csu.jpetmanage.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Repository;

@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
//注入依赖
@Repository
//对应数据库中的表名，使用注解的方式
@TableName(value = "item")
public class Item {
    //定义表的主键值
    @TableId(value = "itemid", type = IdType.AUTO)
    //商品的ID
    private String itemid;
    //小类的ID
    @TableField(value = "productid")
    private String productid;
    //商品的价格
    @TableField(value = "listprice")
    private String listprice;
    //商品的特征一
    @TableField(value = "attr1")
    private String attr1;
    //商品的特征二
    @TableField(value = "attr2")
    private String attr2;
    //商品的特征三
    @TableField(value = "attr3")
    private String attr3;
    //商品的特征四
    @TableField(value = "attr4")
    private String attr4;
    //商品的特征五
    @TableField(value = "attr5")
    private String attr5;

    public String getItemid() {
        return itemid;
    }

    public void setItemid(String itemid) {
        this.itemid = itemid;
    }

    public String getProductid() {
        return productid;
    }

    public void setProductid(String productid) {
        this.productid = productid;
    }

    public String getListprice() {
        return listprice;
    }

    public void setListprice(String listprice) {
        this.listprice = listprice;
    }

    public String getAttr1() {
        return attr1;
    }

    public void setAttr1(String attr1) {
        this.attr1 = attr1;
    }

    public String getAttr2() {
        return attr2;
    }

    public void setAttr2(String attr2) {
        this.attr2 = attr2;
    }

    public String getAttr3() {
        return attr3;
    }

    public void setAttr3(String attr3) {
        this.attr3 = attr3;
    }

    public String getAttr4() {
        return attr4;
    }

    public void setAttr4(String attr4) {
        this.attr4 = attr4;
    }

    public String getAttr5() {
        return attr5;
    }

    public void setAttr5(String attr5) {
        this.attr5 = attr5;
    }
}
